package cn.big.bigd.biocode.configure;

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;

/**
 * Created by Dong Zou on 1/19/2016.
 */
public class MySiteMeshFilter extends ConfigurableSiteMeshFilter {
    @Override
    protected void applyCustomConfiguration(SiteMeshFilterBuilder siteMeshFilterBuilder) {
        siteMeshFilterBuilder
                .addDecoratorPath("/curator/*", "/WEB-INF/layout/admin-decorator.jsp")
                .addDecoratorPath("/admin/*", "/WEB-INF/layout/admin-decorator.jsp")
                .addDecoratorPath("/user/*", "/WEB-INF/layout/decorator.jsp")
                .addDecoratorPath("/*", "/WEB-INF/layout/decorator.jsp")
                .addExcludedPath("/database/all")
                .addExcludedPath("/static/**")
                .addExcludedPath("/database/worldCloud*")
                .addExcludedPath("/WEB-INF/inc/*");
    }

}

